package com.ijunfu.spring._import._03_import_deferred.selector;

import com.ijunfu.spring._import._03_import_deferred.service.RoleService;
import com.ijunfu.spring._import._03_import_deferred.service.UserService;
import org.springframework.context.annotation.DeferredImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
 *
 * @Title  : 
 * @Author : ijunfu <ijunfu@163.com>
 * @Date   : 2023/11/7 14:35
 * @Version: 1.0
 * @Motto  : 世界很大 世界很小
 *
 */
public class MyDeferredSelector implements DeferredImportSelector {
    @Override
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {
        return new String[]{
                RoleService.class.getName(),
                UserService.class.getName()
        };
    }
}
